package com.atguigu.jxc.service;

import com.alibaba.fastjson.JSONObject;
import com.atguigu.jxc.entity.GoodsType;

import java.util.List;
import java.util.Map;

/**
 * @author huangxin
 * @description
 * @date 2020/12/3
 */
public interface GoodsTypeService {
    List<JSONObject> getGoodsCategory();

    void addCategory(String goodsTypeName, Integer pId);

    void deleteCategory(Integer goodsTypeId);

    Map<Integer, String> createPredicatedMap(List<GoodsType> allCategoryList);
}
